package com.yunhe.inspect.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: InspectProcess
 * @Description:
 * @author: GongDaCheng
 * @Date: 16:42 2021/11/11
 */
@Data
@ApiModel("巡检状态流程")
public class InspectProcess implements Serializable {

    private static final long serialVersionUID = 8129003838770655965L;

    /**
     * 巡检状态流程id
     */
    @ApiModelProperty("巡检状态流程id")
    private Long id;

    /**
     * 巡检单id
     */
    @ApiModelProperty("巡检单id")
    private int inspectOrderId;

    /**
     * 状态 01:待评审 02:待复审 03:完成
     */
    @ApiModelProperty("巡检状态 01:已完成 02:待巡检 03:待复审")
    private String processStatus;

    /**
     * 复审意见
     */
    @ApiModelProperty("复审意见")
    private String reviewSuggestion;

    /**
     * 整改单id
     */
    @ApiModelProperty("整改单id")
    private Long rectificationId;

    /**
     * 流程创建时间
     */
    @ApiModelProperty("流程创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 复审时间
     */
    @ApiModelProperty("复审时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reviewTime;


    /******************zb********************/

    /**
     * 内容是否更新
     * 企业上传整改单后为true 默认为false
     */
    @ApiModelProperty("内容是否更新")
    private boolean contentUpdateFlag;
}
